package com.zengge.zbc.exception;

public enum  ErrorCode {

    DEVICE_IS_EXIST(-1,"The device already exists"),
    DEVICE_NOT_FOUND(1001,"The device not found."),
    ROOM_NOT_FOUND(1002,"No room was found"),
    NOT_PERMISSION(1003,"Not permission"),
    LOGIN_FAILED(1004,"Login failed."),
    SERVICE_ERROR(500,"Server error."),
    EXPIRE_TOKEN(401,"token expired.");

    public int code;
    public String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }


}
